#include <iostream>
#include <string>
#include "PollServer.hpp"
#include <memory>

int main(int argc, char* argv[]) 
{
    if (argc < 2) 
    {
        std::cout << "Usage: ./SelectServer <port>" << std::endl;
        return 1;
    }

    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<PollServer> server = std::make_unique<PollServer>(port);
    server->Loop();
    return 0;
}